package com.example.administrator.daydayappmarket.recommend.moduls;

import org.json.JSONException;
import org.json.JSONObject;

public class AppData{
   private String click_type;
   private String image;

    private String id;
   public AppData() {
   }

   public void jsonparse(JSONObject jsonObject){
       try {
           image = jsonObject.getString("image");
           click_type = jsonObject.getString("click_type");
           if(click_type.equals("tab_topic_info")){
               id = jsonObject.getJSONObject("data").getString("id");
           }

       } catch (JSONException e) {
           e.printStackTrace();
       }
   }

    public String getId() {
        return id;
    }

    public String getClick_type() {
        return click_type;
    }

    public String getImage() {
        return image;
    }
}
